//
//  RequestError.m
//  HTHappySale
//
//  Created by 创维海通 on 2017/9/21.
//  Copyright © 2017年 zxyywy. All rights reserved.
//

#import "RequestError.h"

@implementation RequestError

static RequestError *_instance;
+ (id)allocWithZone:(struct _NSZone *)zone{
    //调用dispatch_once保证在多线程中也只被实例化一次
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _instance = [super allocWithZone:zone];
    });
    return _instance;
}

+ (instancetype)sharedTool{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _instance = [[RequestError alloc] init];
    });
    return _instance;
}

-(id)copyWithZone:(NSZone *)zone{
    return _instance;
}

- (void)sendErrorCode:(int64_t)errorCode{
    if(errorCode == 100){
        
    }
}

@end
